package com.itheima.health.dao;

import com.itheima.health.pojo.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface RoleDao {
   @Select("select t_role.* from t_role join t_user_role on t_role.id = t_user_role.role_id where t_user_role.user_id = #{id}")
   List<Role> findROleIdByUserId(Integer id);
}
